package edu.unicen.compilers.polish;

import java.util.Vector;

public class EntryPoint {
	String name;
	Vector<String> polish;
	private Vector<Integer> unresolvedBi=new Vector<Integer>();
	
	public EntryPoint(String n) {
		this.name = n;
		this.polish = new Vector<String>();
	}
	
	public String getName(){
		return this.name;
	}
	
	public Vector<String> getPolish(){
		return this.polish;
	}

	public void setPolish(Vector<String> vector) {
		this.polish=vector;		
	}
	
	public void setUnresolverdIB(Vector<Integer> ubi){
		this.unresolvedBi=ubi;
	}
	
	

	@Override
	public String toString() {
		StringBuffer sb=new StringBuffer();
		sb.append("Punto "+ this.name + " \n");
		//sb.append(polish);
		for (int i = 0; i < this.polish.size(); i++) {
			sb.append( i +"]   "+this.polish.elementAt(i)+" \n");
		}
		return sb.toString();
	}

	public Vector<Integer> getUnresolvedBi() {
		// TODO Auto-generated method stub
		return this.unresolvedBi;
	}

}
